home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / CodeWarrior Lite / Metrowerks C⁄C++ Lite / Headers / Universal Headers 2.0.1f / ASRegistry.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-22  |  11.6 KB  |  337 lines  |  [TEXT/MMCC]

  1. /*
  2.      File:        ASRegistry.h
  3.  
  4.      Contains:    AppleScript Registry constants.
  5.  
  6.      Version:    Technology:    AppleScript 1.1
  7.                  Package:    Universal Interfaces 2.0 in “MPW Latest” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __ASREGISTRY__
  21. #define __ASREGISTRY__
  22.  
  23.  
  24. #ifndef __APPLEEVENTS__
  25. #include <AppleEvents.h>
  26. #endif
  27. /*    #include <Errors.h>                                            */
  28. /*        #include <ConditionalMacros.h>                            */
  29. /*    #include <Types.h>                                            */
  30. /*    #include <Memory.h>                                            */
  31. /*        #include <MixedMode.h>                                    */
  32. /*    #include <OSUtils.h>                                        */
  33. /*    #include <Events.h>                                            */
  34. /*        #include <Quickdraw.h>                                    */
  35. /*            #include <QuickdrawText.h>                            */
  36. /*    #include <EPPC.h>                                            */
  37. /*        #include <AppleTalk.h>                                    */
  38. /*        #include <Files.h>                                        */
  39. /*        #include <PPCToolbox.h>                                    */
  40. /*        #include <Processes.h>                                    */
  41. /*    #include <Notification.h>                                    */
  42.  
  43. #ifndef __AEREGISTRY__
  44. #include <AERegistry.h>
  45. #endif
  46.  
  47. #ifndef __AEOBJECTS__
  48. #include <AEObjects.h>
  49. #endif
  50.  
  51. #ifdef __cplusplus
  52. extern "C" {
  53. #endif
  54.  
  55. #if PRAGMA_ALIGN_SUPPORTED
  56. #pragma options align=mac68k
  57. #endif
  58.  
  59. #if PRAGMA_IMPORT_SUPPORTED
  60. #pragma import on
  61. #endif
  62.  
  63.  
  64. enum {
  65.     keyAETarget                    = 'targ',                        /*  0x74617267  */
  66.     keySubjectAttr                = 'subj',                        /*  0x7375626a  */
  67. /* Magic 'returning' parameter: */
  68.     keyASReturning                = 'Krtn',                        /*  0x4b72746e  */
  69. /* AppleScript Specific Codes: */
  70.     kASAppleScriptSuite            = 'ascr',                        /*  0x61736372  */
  71.     kASTypeNamesSuite            = 'tpnm',                        /*  0x74706e6d  */
  72. /* dynamic terminologies */
  73.     typeAETE                    = 'aete',                        /*  0x61657465  */
  74.     typeAEUT                    = 'aeut',                        /*  0x61657574  */
  75.     kGetAETE                    = 'gdte',                        /*  0x67647465  */
  76.     kGetAEUT                    = 'gdut',                        /*  0x67647574  */
  77.     kUpdateAEUT                    = 'udut',                        /*  0x75647574  */
  78.     kUpdateAETE                    = 'udte',                        /*  0x75647465  */
  79.     kCleanUpAEUT                = 'cdut',                        /*  0x63647574  */
  80.     kASComment                    = 'cmnt',                        /*  0x636d6e74  */
  81.     kASLaunchEvent                = 'noop',                        /*  0x6e6f6f70  */
  82.     keyScszResource                = 'scsz',                        /*  0x7363737A  */
  83.     typeScszResource            = 'scsz',                        /*  0x7363737A  */
  84. /* subroutine calls */
  85.     kASSubroutineEvent            = 'psbr',                        /*  0x70736272  */
  86.     keyASSubroutineName            = 'snam'
  87. };
  88.  
  89. /* Operator Events: */
  90. enum {
  91. /* Binary: */
  92.     kASAdd                        = '+   ',                        /*  0x2b202020  */
  93.     kASSubtract                    = '-   ',                        /*  0x2d202020  */
  94.     kASMultiply                    = '*   ',                        /*  0x2a202020  */
  95.     kASDivide                    = '/   ',                        /*  0x2f202020  */
  96.     kASQuotient                    = 'div ',                        /*  0x64697620  */
  97.     kASRemainder                = 'mod ',                        /*  0x6d6f6420  */
  98.     kASPower                    = '^   ',                        /*  0x5e202020  */
  99.     kASEqual                    = kAEEquals,
  100.     kASNotEqual                    = '≠   ',                        /*  0xad202020  */
  101.     kASGreaterThan                = kAEGreaterThan,
  102.     kASGreaterThanOrEqual        = kAEGreaterThanEquals,
  103.     kASLessThan                    = kAELessThan,
  104.     kASLessThanOrEqual            = kAELessThanEquals,
  105.     kASComesBefore                = 'cbfr',                        /*  0x63626672  */
  106.     kASComesAfter                = 'cafr',                        /*  0x63616672  */
  107.     kASConcatenate                = 'ccat',                        /*  0x63636174  */
  108.     kASStartsWith                = kAEBeginsWith,
  109.     kASEndsWith                    = kAEEndsWith,
  110.     kASContains                    = kAEContains
  111. };
  112.  
  113. enum {
  114.     kASAnd                        = kAEAND,
  115.     kASOr                        = kAEOR,
  116. /* Unary: */
  117.     kASNot                        = kAENOT,
  118.     kASNegate                    = 'neg ',                        /*  0x6e656720  */
  119.     keyASArg                    = 'arg '
  120. };
  121.  
  122. enum {
  123. /* event code for the 'error' statement */
  124.     kASErrorEventCode            = 'err ',                        /*  0x65727220  */
  125.     kOSAErrorArgs                = 'erra',                        /*  0x65727261  */
  126. /* Properties: */
  127.     pLength                        = 'leng',                        /*  0x6c656e67  */
  128.     pReverse                    = 'rvse',                        /*  0x72767365  */
  129.     pRest                        = 'rest',                        /*  0x72657374  */
  130.     pInherits                    = 'c@#^',                        /*  0x6340235e  */
  131. /* User-Defined Record Fields: */
  132.     keyASUserRecordFields        = 'usrf',                        /*  0x75737266  */
  133.     typeUserRecordFields        = typeAEList
  134. };
  135.  
  136. /* Prepositions: */
  137. enum {
  138.     keyASPrepositionAt            = 'at  ',                        /*  0x61742020  */
  139.     keyASPrepositionIn            = 'in  ',                        /*  0x696e2020  */
  140.     keyASPrepositionFrom        = 'from',                        /*  0x66726f6d  */
  141.     keyASPrepositionFor            = 'for ',                        /*  0x666f7220  */
  142.     keyASPrepositionTo            = 'to  ',                        /*  0x746f2020  */
  143.     keyASPrepositionThru        = 'thru',                        /*  0x74687275  */
  144.     keyASPrepositionThrough        = 'thgh',                        /*  0x74686768  */
  145.     keyASPrepositionBy            = 'by  ',                        /*  0x62792020  */
  146.     keyASPrepositionOn            = 'on  ',                        /*  0x6f6e2020  */
  147.     keyASPrepositionInto        = 'into',                        /*  0x696e746f  */
  148.     keyASPrepositionOnto        = 'onto',                        /*  0x6f6e746f  */
  149.     keyASPrepositionBetween        = 'btwn',                        /*  0x6274776e  */
  150.     keyASPrepositionAgainst        = 'agst',                        /*  0x61677374  */
  151.     keyASPrepositionOutOf        = 'outo',                        /*  0x6f75746f  */
  152.     keyASPrepositionInsteadOf    = 'isto',                        /*  0x6973746f  */
  153.     keyASPrepositionAsideFrom    = 'asdf',                        /*  0x61736466  */
  154.     keyASPrepositionAround        = 'arnd',                        /*  0x61726e64  */
  155.     keyASPrepositionBeside        = 'bsid',                        /*  0x62736964  */
  156.     keyASPrepositionBeneath        = 'bnth',                        /*  0x626e7468  */
  157.     keyASPrepositionUnder        = 'undr'
  158. };
  159.  
  160. enum {
  161.     keyASPrepositionOver        = 'over',                        /*  0x6f766572  */
  162.     keyASPrepositionAbove        = 'abve',                        /*  0x61627665  */
  163.     keyASPrepositionBelow        = 'belw',                        /*  0x62656c77  */
  164.     keyASPrepositionApartFrom    = 'aprt',                        /*  0x61707274  */
  165.     keyASPrepositionGiven        = 'givn',                        /*  0x6769766e  */
  166.     keyASPrepositionWith        = 'with',                        /*  0x77697468  */
  167.     keyASPrepositionWithout        = 'wout',                        /*  0x776f7574  */
  168.     keyASPrepositionAbout        = 'abou',                        /*  0x61626f75  */
  169.     keyASPrepositionSince        = 'snce',                        /*  0x736e6365  */
  170.     keyASPrepositionUntil        = 'till'
  171. };
  172.  
  173. enum {
  174. /* Terminology & Dialect things: */
  175.     kDialectBundleResType        = 'Dbdl',                        /*  0x4462646c  */
  176. /* AppleScript Classes and Enums: */
  177.     cConstant                    = typeEnumerated,
  178.     cClassIdentifier            = pClass,
  179.     cObjectBeingExamined        = typeObjectBeingExamined,
  180.     cList                        = typeAEList,
  181.     cSmallReal                    = typeSMFloat,
  182.     cReal                        = typeFloat,
  183.     cRecord                        = typeAERecord,
  184.     cReference                    = cObjectSpecifier,
  185.     cUndefined                    = 'undf',                        /*  0x756e6466  */
  186.     cSymbol                        = 'symb',                        /*  0x73796d62  */
  187.     cLinkedList                    = 'llst',                        /*  0x6c6c7374  */
  188.     cVector                        = 'vect',                        /*  0x76656374  */
  189.     cEventIdentifier            = 'evnt',                        /*  0x65766e74  */
  190.     cKeyIdentifier                = 'kyid',                        /*  0x6b796964  */
  191.     cUserIdentifier                = 'uid ',                        /*  0x75696420  */
  192.     cPreposition                = 'prep',                        /*  0x70726570  */
  193.     cKeyForm                    = enumKeyForm,
  194.     cScript                        = 'scpt',                        /*  0x73637074  */
  195.     cHandler                    = 'hand',                        /*  0x68616e64  */
  196.     cProcedure                    = 'proc'
  197. };
  198.  
  199. enum {
  200.     cClosure                    = 'clsr',                        /*  0x636c7372  */
  201.     cRawData                    = 'rdat',                        /*  0x72646174  */
  202.     cString                        = typeChar,
  203.     cStringClass                = typeChar,
  204.     cNumber                        = 'nmbr',                        /*  0x6e6d6272  */
  205.     cListOrRecord                = 'lr  ',                        /*  0x6c722020  */
  206.     cListOrString                = 'ls  ',                        /*  0x6c732020  */
  207.     cListRecordOrString            = 'lrs ',                        /*  0x6c727320  */
  208.     cNumberOrDateTime            = 'nd  ',                        /*  0x6e642020  */
  209.     cNumberDateTimeOrString        = 'nds ',                        /*  0x6e647320  */
  210.     cSeconds                    = 'scnd',                        /*  0x73636e64  */
  211.     enumBooleanValues            = 'boov',                        /*  0x626f6f76  */
  212.     kAETrue                        = typeTrue,
  213.     kAEFalse                    = typeFalse,
  214.     enumMiscValues                = 'misc',                        /*  0x6d697363  */
  215.     kASCurrentApplication        = 'cura',                        /*  0x63757261  */
  216. /* User-defined property ospecs: */
  217.     formUserPropertyID            = 'usrp'
  218. };
  219.  
  220. enum {
  221. /* Global properties: */
  222.     pASIt                        = 'it  ',                        /*  0x69742020  */
  223.     pASMe                        = 'me  ',                        /*  0x6d652020  */
  224.     pASResult                    = 'rslt',                        /*  0x72736c74  */
  225.     pASSpace                    = 'spac',                        /*  0x73706163  */
  226.     pASReturn                    = 'ret ',                        /*  0x72657420  */
  227.     pASTab                        = 'tab ',                        /*  0x74616220  */
  228.     pASPi                        = 'pi  ',                        /*  0x70692020  */
  229.     pASParent                    = 'pare',                        /*  0x70617265  */
  230.     kASInitializeEventCode        = 'init',                        /*  0x696e6974  */
  231.     pASPrintLength                = 'prln',                        /*  0x70726c6e  */
  232.     pASPrintDepth                = 'prdp',                        /*  0x70726470  */
  233.     pASTopLevelScript            = 'ascr'
  234. };
  235.  
  236. enum {
  237. /* Considerations */
  238.     kAECase                        = 'case',                        /*  0x63617365  */
  239.     kAEDiacritic                = 'diac',                        /*  0x64696163  */
  240.     kAEWhiteSpace                = 'whit',                        /*  0x77686974  */
  241.     kAEHyphens                    = 'hyph',                        /*  0x68797068  */
  242.     kAEExpansion                = 'expa',                        /*  0x65787061  */
  243.     kAEPunctuation                = 'punc',                        /*  0x70756e63  */
  244.     kAEZenkakuHankaku            = 'zkhk',                        /*  0x7a6b686b  */
  245.     kAESmallKana                = 'skna',                        /*  0x736b6e61  */
  246.     kAEKataHiragana                = 'hika',                        /*  0x68696b61  */
  247. /* AppleScript considerations: */
  248.     kASConsiderReplies            = 'rmte',                        /*  0x726d7465  */
  249.     enumConsiderations            = 'cons'
  250. };
  251.  
  252. enum {
  253.     cCoercion                    = 'coec',                        /*  0x636f6563  */
  254.     cCoerceUpperCase            = 'txup',                        /*  0x74787570  */
  255.     cCoerceLowerCase            = 'txlo',                        /*  0x74786c6f  */
  256.     cCoerceRemoveDiacriticals    = 'txdc',                        /*  0x74786463  */
  257.     cCoerceRemovePunctuation    = 'txpc',                        /*  0x74787063  */
  258.     cCoerceRemoveHyphens        = 'txhy',                        /*  0x74786879  */
  259.     cCoerceOneByteToTwoByte        = 'txex',                        /*  0x74786578  */
  260.     cCoerceRemoveWhiteSpace        = 'txws',                        /*  0x74787773  */
  261.     cCoerceSmallKana            = 'txsk',                        /*  0x7478736b  */
  262.     cCoerceZenkakuhankaku        = 'txze',                        /*  0x74787a65  */
  263.     cCoerceKataHiragana            = 'txkh',                        /*  0x74786b68  */
  264. /* Lorax things: */
  265.     cZone                        = 'zone',                        /*  0x7a6f6e65  */
  266.     cMachine                    = 'mach',                        /*  0x6d616368  */
  267.     cAddress                    = 'addr',                        /*  0x61646472  */
  268.     cRunningAddress                = 'radd',                        /*  0x72616464  */
  269.     cStorage                    = 'stor'
  270. };
  271.  
  272. enum {
  273. /* DateTime things: */
  274.     pASWeekday                    = 'wkdy',                        /*  0x776b6479  */
  275.     pASMonth                    = 'mnth',                        /*  0x6d6e7468  */
  276.     pASDay                        = 'day ',                        /*  0x64617920  */
  277.     pASYear                        = 'year',                        /*  0x79656172  */
  278.     pASTime                        = 'time',                        /*  0x74696d65  */
  279.     pASDateString                = 'dstr',                        /*  0x64737472  */
  280.     pASTimeString                = 'tstr',                        /*  0x74737472  */
  281. /* Months */
  282.     cMonth                        = pASMonth,
  283.     cJanuary                    = 'jan ',                        /*  0x6a616e20  */
  284.     cFebruary                    = 'feb ',                        /*  0x66656220  */
  285.     cMarch                        = 'mar ',                        /*  0x6d617220  */
  286.     cApril                        = 'apr ',                        /*  0x61707220  */
  287.     cMay                        = 'may ',                        /*  0x6d617920  */
  288.     cJune                        = 'jun ',                        /*  0x6a756e20  */
  289.     cJuly                        = 'jul ',                        /*  0x6a756c20  */
  290.     cAugust                        = 'aug ',                        /*  0x61756720  */
  291.     cSeptember                    = 'sep ',                        /*  0x73657020  */
  292.     cOctober                    = 'oct ',                        /*  0x6f637420  */
  293.     cNovember                    = 'nov ',                        /*  0x6e6f7620  */
  294.     cDecember                    = 'dec '
  295. };
  296.  
  297. enum {
  298. /* Weekdays */
  299.     cWeekday                    = pASWeekday,
  300.     cSunday                        = 'sun ',                        /*  0x73756e20  */
  301.     cMonday                        = 'mon ',                        /*  0x6d6f6e20  */
  302.     cTuesday                    = 'tue ',                        /*  0x74756520  */
  303.     cWednesday                    = 'wed ',                        /*  0x77656420  */
  304.     cThursday                    = 'thu ',                        /*  0x74687520  */
  305.     cFriday                        = 'fri ',                        /*  0x66726920  */
  306.     cSaturday                    = 'sat ',                        /*  0x73617420  */
  307. /* AS 1.1 Globals: */
  308.     pASQuote                    = 'quot',                        /*  0x71756f74  */
  309.     pASSeconds                    = 'secs',                        /*  0x73656373  */
  310.     pASMinutes                    = 'min ',                        /*  0x6d696e20  */
  311.     pASHours                    = 'hour',                        /*  0x686f7572  */
  312.     pASDays                        = 'days',                        /*  0x64617973  */
  313.     pASWeeks                    = 'week',                        /*  0x7765656b  */
  314. /* Writing Code things: */
  315.     cWritingCodeInfo            = 'citl',                        /*  0x6369746c  */
  316.     pScriptCode                    = 'pscd',                        /*  0x70736364  */
  317.     pLangCode                    = 'plcd',                        /*  0x706c6364  */
  318. /* Magic Tell and End Tell events for logging: */
  319.     kASMagicTellEvent            = 'tell',                        /*  0x74656c6c  */
  320.     kASMagicEndTellEvent        = 'tend'
  321. };
  322.  
  323.  
  324. #if PRAGMA_IMPORT_SUPPORTED
  325. #pragma import off
  326. #endif
  327.  
  328. #if PRAGMA_ALIGN_SUPPORTED
  329. #pragma options align=reset
  330. #endif
  331.  
  332. #ifdef __cplusplus
  333. }
  334. #endif
  335.  
  336. #endif /* __ASREGISTRY__ */
  337.